package com.csun.cmny.provider.model.dto;

import com.csun.cmny.base.dto.BaseQuery;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.util.Date;

@Data
public class VisitorQueryDto extends BaseQuery {

    /*名字*/
    private String name;

    /*咨询意向 */
    private String intention;

    /*咨询日期-开始时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date consultDateStart;

    /*咨询日期-结束时间*/
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date consultDateEnd;

    /*机构id*/
    private Long groupId;

    /*用户id*/
    private Long userId;
}
